package priv.yiyuan.example.design.pay02;

/**
 * PayPal 支付
 *
 * @author YiYuan
 * @data 2025/8/8
 * @apoNote
 */
public class PayPalPayment implements UnifiedPayment {

    private String email;

    public PayPalPayment(String email) {
        this.email = email;
    }

    @Override
    public void processPayment(double amount, String paymentDetails) {

        System.out.println(String.format("Processing PayPal payment: $%.2f\n", amount));
        System.out.println("PayPal account: " + email);
        System.out.println("Payment details: " + paymentDetails);

    }

}
